package com.demo.demo01.mapper;

//import org.apache.ibatis.annotations.Mapper;

import com.demo.demo01.pojo.User;
import org.springframework.stereotype.Repository;

import java.util.List;

//@Mapper   注解代表了这是一个 mybatis 的 mapper 类
@Repository     // DAO
public interface UserMapper {

    List<User> queryUserList();

    User queryUserByID(String account);

    int addUser(User user);

    int updateUser(User user);

    int deleteUser(String account);


}
